import java.util.ArrayList;

//str1: welcome to cvte
//str2:come
//描述,删除第一个字符串当中出现的第二个字符串的字符，结果：wl t vt要求用ArrayList完成
public class Test {
    public static ArrayList<String> fun(String str1, String str2){
        ArrayList<String> arrayList=new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch=str1.charAt(i);
          if (!str2.contains(ch+"")){
              arrayList.add(ch+"");
          }
        }
        return arrayList;
    }
    public static void main(String[] args) {
        String str1="welcome to cvte";
        String str2="come";
        ArrayList<String> arrayList1=new ArrayList<>();
        arrayList1=fun(str1,str2);
        for (int i = 0; i <arrayList1.size() ; i++) {
            System.out.print(arrayList1.get(i));
        }
    }
}
